<template>
  <div class="no-permission-container">
    <div class="no-permission-content">
      <i class="el-icon-warning-outline warning-icon"></i>
      <h1>403</h1>
      <h2>抱歉，您没有权限访问此页面</h2>
      <p>当前您的管理员权限不足，无法查看此页面内容</p>
      <div class="actions">
        <el-button type="primary" @click="goHome">返回首页</el-button>
        <el-button @click="goBack">返回上一页</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NoPermission',
  methods: {
    goHome() {
      this.$router.push({ path: '/' });
    },
    goBack() {
      this.$router.go(-1);
    }
  }
}
</script>

<style scoped>
.no-permission-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f7fa;
}

.no-permission-content {
  text-align: center;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 500px;
}

.warning-icon {
  font-size: 64px;
  color: #E6A23C;
  margin-bottom: 20px;
}

h1 {
  font-size: 72px;
  color: #E6A23C;
  margin: 0;
  line-height: 1;
}

h2 {
  font-size: 24px;
  color: #303133;
  margin: 20px 0;
}

p {
  color: #606266;
  margin-bottom: 30px;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}
</style> 